﻿using System;
using System.Drawing;
using AiFrame.InterfaceLib.Windows.Controls;

namespace AiFrame.InterfaceLib.MVP
{
    /// <summary>
    /// Delegate for the on click event.
    /// </summary>
    /// <param name="sender">The sender class.</param>
    /// <param name="e">Event arguments.</param>
    public delegate void OnButtonClickProcedure(object sender, EventArgs e);

    /// <summary>
    /// Represents the new version of the navigation bar.
    /// </summary>
    public interface INavigationBar_1_1: INavigationBar
    {
        /// <summary>
        /// Adds a button and returns the data navigation bar.
        /// </summary>
        /// <param name="name">The name of the button.</param>
        /// <param name="caption">The caption of the button.</param>
        /// <param name="hoverText">Hover text</param>
        /// <param name="image">The image of the button.</param>
        /// <param name="clickProcedure">The procedure for the click event.</param>
        /// <returns></returns>
        IDataNavigationBar AddButton(string name, string caption, string hoverText,
                       Image image, OnButtonClickProcedure clickProcedure);
    }
}
